package spring;

import java.util.List;

public class StudentServiceI implements StudentService {

    private StudentDao sd;//属性  成员变量
    public void setSd(StudentDao sd){//set方法
        this.sd = sd;
    }

    public StudentServiceI() {}
    public StudentServiceI(StudentDao sd) {
        this.sd = sd;
    }

    public Student getStudent() {
        return sd.get();
    }

    public List<Student> findStudent() {
        return sd.find();
    }
}
